//符号化对象
var AllStyles = [
    {
        styleName: "important_index",
        layerStyle: [
            {
                level: 18,
                diplayfield: "",
                renderfield: "name",
                style: {
                    "bu-01": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/bu-01.png',
                            scale: 0.6,
                            anchor:[0.5,0.5]
                            
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({ 
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                       
                    }),
                    "bu-02": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/bu-02.png',
                             scale: 0.6,
                            anchor:[0.5,0.5]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({ 
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                       
                    }),
                    "bu-03": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/bu-03.png',
                             scale: 0.6,
                            anchor:[0.5,0.5]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({ 
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                       
                    }),
                    "bu-04": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/bu-04.png',
                             scale: 0.6,
                            anchor:[0.5,0.5]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({ 
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                       
                    }),
                    "bu-05": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/bu-05.png',
                             scale: 0.6,
                            anchor:[0.5,0.5]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({ 
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                       
                    }),
                    "bu-06": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/bu-06.png',
                             scale: 0.6,
                            anchor:[0.5,0.5]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({ 
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                       
                    }),
                    "bu-07": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/bu-07.png',
                             scale: 0.6,
                            anchor:[0.5,0.5]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({ 
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                       
                    }),
                    "bu-08": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/bu-08.png',
                             scale: 0.6,
                            anchor:[0.5,0.5]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({ 
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                       
                    }),
                    "bu-09": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/bu-09.png',
                             scale: 0.6,
                            anchor:[0.5,0.5]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({ 
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                       
                    }),
                    "bu-10": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/bu-10.png',
                             scale: 0.6,
                            anchor:[0.5,0.5]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({ 
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                       
                    }),
                     "bu-11": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/bu-11.png',
                             scale: 0.6,
                            anchor:[0.5,0.5]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({ 
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                       
                    }),
                     "bu-12": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/bu-12.png',
                             scale: 0.6,
                            anchor:[0.5,0.5]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({ 
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                       
                    }),
                }
            }
        ]
    },
    {
        styleName: "行政区3",
        layerStyle: [
            {
                level: 18,
                diplayfield: "NAME",
                renderfield: "",
                style:new ol.style.Style({
                  stroke: new ol.style.Stroke({
                    color: 'rgba(255,0,0,1)',
                    width: 3
                  }),
                  fill: new ol.style.Fill({
                    color: 'rgba(0,255,255,0.1)'
                  }),
                  text: new ol.style.Text({ //文本样式
                    font: 'bold 14px serif',
                    overflow: true,
                    fill: new ol.style.Fill({
                      color: 'rgba(0,0,0,1)'
                    }),
                    stroke: new ol.style.Stroke({
                      color: 'rgba(255,255,255,0.5)',
                      width: 3
                    })
                  })
                })
            },
            {
                level: 100,
                diplayfield: "qq",
                renderfield: "",
                style: null
            }
        ]
    },
     {
        styleName: "行政区2",
        layerStyle: [
            {
                level: 18,
                diplayfield: "NAME",
                renderfield: "",
                style:new ol.style.Style({
                  stroke: new ol.style.Stroke({
                    color: 'rgba(255,0,0,0.8)',
                    width: 1
                  }),
                  fill: new ol.style.Fill({
                    color: 'rgba(0,255,255,0.1)'
                  }),
                  text: new ol.style.Text({ //文本样式
                    font: 'bold 14px serif',
                    overflow: true,
                    fill: new ol.style.Fill({
                      color: 'rgba(0,0,0,1)'
                    }),
                    stroke: new ol.style.Stroke({
                      color: 'rgba(255,255,255,0.5)',
                      width: 3
                    })
                  })
                })
            },
            {
                level: 100,
                diplayfield: "qq",
                renderfield: "",
                style: null
            }
        ]
    },
     {
        styleName: "行政区",
        layerStyle: [
            {
                level: 10,
                diplayfield: "NAME",
                renderfield: "",
                style:new ol.style.Style({
                  stroke: new ol.style.Stroke({
                    color: 'rgba(255,0,0,0.8)',
                    width: 1
                  }),
                  fill: new ol.style.Fill({
                    color: 'rgba(0,255,255,0.1)'
                  }),
                  text: new ol.style.Text({ //文本样式
                    font: 'bold 14px serif',
                    overflow: true,
                    fill: new ol.style.Fill({
                      color: 'rgba(0,0,0,1)'
                    }),
                    stroke: new ol.style.Stroke({
                      color: 'rgba(255,255,255,0.5)',
                      width: 3
                    })
                  })
                })
            },
            {
                level: 100,
                diplayfield: "qq",
                renderfield: "",
                style: null
            }
        ]
    },
     {
        styleName: "项目进度",
        layerStyle: [
            {
                level: 14,
                diplayfield: "",
                renderfield: "order_condition",
                style: {
                    "达序": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/dx.png',
                            anchor:[0.5,1]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({ 
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                    }),
                    "超序": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/cx.png',
                            anchor:[0.5,1]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                    }),
                    "未达序": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/wdx.png',
                            anchor:[0.5,1]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                    })

                }
            },
            {
                level: 18,
                diplayfield: "project_name",
                renderfield: "order_condition",
                style: {
                    "达序": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/dx.png',
                            anchor:[0.5,1]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({ 
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                    }),
                    "超序": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/cx.png',
                            anchor:[0.5,1]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                    }),
                    "未达序": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/wdx.png',
                            anchor:[0.5,1]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                    })

                }
            },
            {
                level: 100,
                diplayfield: "",
                renderfield: "",
                style: new ol.style.Style({
                    image: new ol.style.Icon({
                        src: '../img/logo.png'
                    }),
                    text: new ol.style.Text({ //文本样式
                        font: 'bold 14px serif',
                        overflow: true,
                        fill: new ol.style.Fill({
                            color: 'rgba(0,0,0,1)'
                        }),
                        stroke: new ol.style.Stroke({
                            color: 'rgba(255,255,255,0.5)',
                            width: 3
                        })
                    })
                })
            }
        ]
    },
     {
        styleName: "项目状态",
        layerStyle: [
            {
                level: 14,
                diplayfield: "",
                renderfield: "project_status",
                style: {
                    "项目前期准备中": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/xmqqzbz.png',
                            anchor:[0.5,1]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({ 
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                    }),
                    "项目已开工": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/xmykg.png',
                            anchor:[0.5,1]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                    }),
                    "项目竣工验收完成": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/xmjgyswc.png',
                            anchor:[0.5,1]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                    }),
                    "项目竣工验收中": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/xmjgysz.png',
                            anchor:[0.5,1]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                    })

                }
            },
            {
                level: 18,
                diplayfield: "project_name",
                renderfield: "project_status",
                style: {
                    "项目前期准备中": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/xmqqzbz.png',
                            anchor:[0.5,1]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({ 
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                    }),
                    "项目已开工": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/xmykg.png',
                            anchor:[0.5,1]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                    }),
                     "项目竣工验收中": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/xmjgysz.png',
                            anchor:[0.5,1]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                    }),
                    "项目竣工验收完成": new ol.style.Style({
                        image: new ol.style.Icon({
                            src: '../gis/img/xmjgyswc.png',
                            anchor:[0.5,1]
                        }),
                        text: new ol.style.Text({ //文本样式
                            font: 'bold 14px serif',
                            overflow: true,
                            fill: new ol.style.Fill({
                                color: 'rgba(0,0,0,1)'
                            }),
                            stroke: new ol.style.Stroke({
                                color: 'rgba(255,255,255,0.5)',
                                width: 3
                            })
                        })
                    })

                }
            },
            {
                level: 100,
                diplayfield: "",
                renderfield: "",
                style: new ol.style.Style({
                    image: new ol.style.Icon({
                        src: '../img/logo.png'
                    }),
                    text: new ol.style.Text({ //文本样式
                        font: 'bold 14px serif',
                        overflow: true,
                        fill: new ol.style.Fill({
                            color: 'rgba(0,0,0,1)'
                        }),
                        stroke: new ol.style.Stroke({
                            color: 'rgba(255,255,255,0.5)',
                            width: 3
                        })
                    })
                })
            }
        ]
    }
]